package com.csust.cg.mongodb.domain.vo;

import lombok.Data;

/**
 * @author chenguang
 */
@Data
public class CollectionVO {

    /**
     * The namespace of the current collection, which follows the format [database].[collection].
     */
    private String ns;

    /**
     * The total uncompressed size in memory of all records in a collection.
     * The size does not include the size of any indexes associated with the collection, which the totalIndexSize field reports.
     */
    private Integer size;

    /**
     * The number of objects or documents in this collection.
     */
    private Integer count;

    /**
     * The average size of an object in the collection.
     */
    private Integer avgObjSize;

    /**
     * The total amount of storage allocated to this collection for document storage.
     */
    private Integer storageSize;

    /**
     * The number of indexes on the collection.
     * All collections have at least one index on the _id field.
     */
    private Integer nIndexes;

    /**
     * The total size of all indexes.
     */
    private Integer totalIndexSize;

    /**
     * The sum of the storageSize and totalIndexSize.
     */
    private Integer totalSize;

}
